int init();
double calcDistance(double lat1, double lon1, double lat2, double lon2);
double calcHeading(double lat1, double lon1, double lat2, double lon2);
void signal_handler(int signum);
int getCommand();
int parseCommand();
void printStatus();
void printLog();
